#!/bin/bash
#	$Id: decrypt_with_gnupg.sh 2227 2005-09-25 12:47:22Z jeff $
#	$Author: jeff $

FILE=$1

if [ "${FILE}" = "" ]; then
	echo "	syntax: $0 file"
	exit -1
fi

rm -f "${FILE%.gpg}"
gpg \
	-r "freemed@$(hostname)" \
	--homedir=data/keys \
	--no-options \
	--quiet \
	-o "${FILE%.gpg}" \
	--primary-keyring data/keys/pubring.pub \
	--decrypt "${FILE}"
